import 'package:flutter/material.dart';

class PersonDetailPage extends StatefulWidget {

  VoidCallback onToTarget;

  PersonDetailPage({super.key, required this.onToTarget});

  @override
  State<StatefulWidget> createState() {
    return _PersonDetailPageState();
  }
}

class _PersonDetailPageState extends State<PersonDetailPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("用户详情"),
      ),
      body: Center(
        child: ElevatedButton(
          child: Text("测试111"),
          onPressed: widget.onToTarget,
        ),
      ),
    );
  }
}
